num = input()
long=len(num)-2
str1='我'
if num.startswith('0b'):
    str1="01"
elif num.startswith('0o'):
    str1="01234567"
elif num.startswith('0x'):
    str1="0123456789abcdefABCDEF"
elif num.isdigit() :
    print('是整型')
b=0
if str1 == '我':
    print('不是整型')
for i in num[2:]:
    if i in str1:
        b = b + 1
    else:
        print('不是整型')
        break
if b == long:
    print('是整型')
